HealthCharacteristicType PRO

This section describes enums related to user health profile attributes and activity configuration, including biological sex, blood type, skin type, wheelchair use, and activity move mode. These enums are used with the Health API to retrieve user profile data from HealthKit.


1. HealthBiologicalSex

Represents the user’s biological sex.

Enum ValueDescription
notSetNot set
femaleFemale
maleMale
otherOther/nonbinary

2. HealthBloodType

Represents the user’s blood type.

Enum ValueDescription
notSetNot set
aPositiveA Positive
aNegativeA Negative
bPositiveB Positive
bNegativeB Negative
abPositiveAB Positive
abNegativeAB Negative
oPositiveO Positive
oNegativeO Negative

3. HealthFitzpatrickSkinType

Represents the Fitzpatrick skin type classification, indicating the skin's response to sun exposure.

Enum ValueTypeDescription
notSetNot set
IType IVery fair, always burns, never tans
IIType IIFair, usually burns, tans minimally
IIIType IIIMedium, sometimes mild burn, gradually tans
IVType IVOlive/dark, rarely burns, tans well
VType VBrown skin, rarely burns, tans easily
VIType VIDeeply pigmented, never burns

4. HealthWheelchairUse

Indicates whether the user uses a wheelchair.

Enum ValueDescription
notSetNot set
noDoes not use
yesUses wheelchair

5. HealthActivityMoveMode

Represents how the user prefers to track their movement goals in the Activity summary.

Enum ValueDescription
activeEnergyBased on active energy burned
appleMoveTimeBased on movement duration (Apple Move Time)

Usage Examples

// Check if the user uses a wheelchair
const wheelchair = await Health.wheelchairUse()
if (wheelchair === HealthWheelchairUse.yes) {
  console.log("The user uses a wheelchair")
}

// Retrieve and log the user's Fitzpatrick skin type
const skinType = await Health.fitzpatrickSkinType()
switch (skinType) {
  case HealthFitzpatrickSkinType.III:
    console.log("Medium skin type, gradually tans")
    break
}

// Determine user's activity move mode
const moveMode = await Health.activityMoveMode()
if (moveMode === HealthActivityMoveMode.appleMoveTime) {
  console.log("The user uses Apple Move Time mode")
}